package com.dwxt.cms.config;

import com.dwxt.common.aop.ValidateAspectHandel;
import com.dwxt.common.config.FeignConfiguration;
import com.dwxt.common.exception.ExceptionHandler;
import com.dwxt.common.util.PartyUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注入一些公共的处理类
 */
@Configuration
public class BeanConfig {

    @Bean
    public ValidateAspectHandel getValidateAspectHandel() {
        return new ValidateAspectHandel();
    }

    @Bean
    public PartyUtil getPartyUtil() {
        return new PartyUtil();
    }

    @Bean
    public ExceptionHandler getExceptionHandler() {
        return new ExceptionHandler();
    }

    @Bean
    public FeignConfiguration getFeignConfiguration(){
        return new FeignConfiguration();
    }
}
